package com.cx.file.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.File;
import java.util.List;

/**
 * @author cx
 * @description:
 * @date 2023/6/5 19:25
 */
@ConfigurationProperties("file")
public class FileManageConfigProperties {
    private String path;
    private List<String> includeTypes;
    private List<String> excludeTypes;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<String> getIncludeTypes() {
        return includeTypes;
    }

    public void setIncludeTypes(List<String> includeTypes) {
        this.includeTypes = includeTypes;
    }

    public List<String> getExcludeTypes() {
        return excludeTypes;
    }

    public void setExcludeTypes(List<String> excludeTypes) {
        this.excludeTypes = excludeTypes;
    }

    public String getFileSavePath(String filePath) {
        return path + File.separator + filePath;
    }
}
